package com.book.book.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.book.book.dao.BookstatusDao;
import com.book.book.domain.BookstatusDO;
import com.book.book.service.BookstatusService;



@Service
public class BookstatusServiceImpl implements BookstatusService {
	@Autowired
	private BookstatusDao bookstatusDao;
	
	@Override
	public BookstatusDO get(Integer  statusId){
		return bookstatusDao.get( statusId);
	}
	
	@Override
	public List<BookstatusDO> list(Map<String, Object> map){
		return bookstatusDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return bookstatusDao.count(map);
	}
	
	@Override
	public int save(BookstatusDO bookstatus){
		return bookstatusDao.save(bookstatus);
	}
	
	@Override
	public int update(BookstatusDO bookstatus){
		return bookstatusDao.update(bookstatus);
	}
	
	@Override
	public int remove(Integer  statusId){
		return bookstatusDao.remove( statusId);
	}
	
	@Override
	public int batchRemove(Integer[]  statusIds){
		return bookstatusDao.batchRemove( statusIds);
	}
	
}
